import java.io.*;
import java.net.InetSocketAddress;
import java.net.Socket;

public class SocketClient {

    public static void main(String[] args) throws IOException {
        Socket socket = new Socket();
        socket.connect(new InetSocketAddress("localhost", 8088));
        InputStream input = socket.getInputStream();
        OutputStream output = socket.getOutputStream();
        output.write("abc\n".getBytes());
        output.flush();
        InputStreamReader reader = new InputStreamReader(input);
        BufferedReader bufferedReader = new BufferedReader(reader);
        String s = bufferedReader.readLine();
        System.out.println(s);
    }
}
